﻿#include "ShaderMacroSystem.h"

#include <sstream>

void FShaderMacroSystem::AddMacroDefCode(const std::string& Id, const std::string& Code)
{
	assert(MacroDefMap.find(Id) == MacroDefMap.end() && "一定不能重复");
	MacroDefMap.emplace(Id, Code);
}

bool FShaderMacroSystem::PreproccessShaderSrcCode(const std::string& InCode, std::string& OutCode)
{
	std::istringstream InStream(InCode);
	std::string LineStr;

	while (std::getline(InStream, LineStr))
	{
		//for (auto&)
	}

	return true;
}
